package com.yunyao.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yunyao.dao.model.BamuMaterial;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 材料信息 Mapper 接口
 * </p>
 *
 * @author xingjishuai
 * @since 2024-07-02
 */
public interface BamuMaterialMapper extends BaseMapper<BamuMaterial> {

    List<BamuMaterial> pageList(@Param("newAncestors") String newAncestors,
                                @Param("materialCode") String materialCode,
                                @Param("materialName") String materialName,
                                @Param("materialSpecifications") String materialSpecifications,
                                @Param("materialCategoryId") String materialCategoryId,
                                @Param("pageIndex")Long pageIndex,
                                @Param("pageSize")Long pageSize);

    long pageCount(@Param("newAncestors") String newAncestors,
                   @Param("materialCode") String materialCode,
                   @Param("materialName") String materialName,
                   @Param("materialSpecifications") String materialSpecifications,
                   @Param("materialCategoryId") String materialCategoryId);
}
